package pustakahidayah.online.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="tb_pembayaran_detail")
public class PembayaranDetail {
    @Id
    @Column(name="IdPembayaranDetail", length=10, nullable=false)
    private String IdPembayaranDetail;

    @ManyToOne
    @JoinColumn(name="Id")
    private TransaksiDetail TransaksiDetail;

    @Column(name="Quantity", length=10, nullable=false)
    private Integer Quantity;

    @ManyToOne
    @JoinColumn(name="IdPembayaran")
    private PembayaranHeader PembayaranHeader;

    public String getIdPembayaranDetail() {
        return IdPembayaranDetail;
    }

    public void setIdPembayaranDetail(String IdPembayaranDetail) {
        this.IdPembayaranDetail = IdPembayaranDetail;
    }

    public PembayaranHeader getPembayaranHeader() {
        return PembayaranHeader;
    }

    public void setPembayaranHeader(PembayaranHeader PembayaranHeader) {
        this.PembayaranHeader = PembayaranHeader;
    }

    public Integer getQuantity() {
        return Quantity;
    }

    public void setQuantity(Integer Quantity) {
        this.Quantity = Quantity;
    }

    public TransaksiDetail getTransaksiDetail() {
        return TransaksiDetail;
    }

    public void setTransaksiDetail(TransaksiDetail TransaksiDetail) {
        this.TransaksiDetail = TransaksiDetail;
    }
}
